package com.cyx.config;

import com.cyx.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
//等价于XML中的 import
@Import(AppConfigDao.class)
public class AppConfig {
    @Bean(value = "user")
    public User getUser(){
        return new User();
    }
}
